package com.ln.dm1031.demo04;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/10/31 15:25
 */
public class Test04 {
    public static void main(String[] args) {

        BankCard bankCard = new BankCard(0);
        //创建任务对象
        HandsomeBoy handsomeBoy = new HandsomeBoy(bankCard);
        Belle belle = new Belle(bankCard);
        //创建线程对象
        Thread thread = new Thread(handsomeBoy, "舔狗");
        Thread thread1 = new Thread(belle, "美女");

        thread.start();
        thread1.start();

    }
}
